/**
 * Created by tsy on 2016/6/14.
 */
function submitSearch(){
    $("#searchTable").submit();
}

function resetSearch(){
    $("#start_time").textbox("setValue","");
    $("#end_time").textbox("setValue","");
    $('#borrow_status').combobox('setValue',"");
}

function exportReport(){
    var url="../../report/applyreport/apply_report_export";
    $.ajax({
        type: "post",
        async: true,
        data: $("#searchTable").serialize(),
        url: url,
        success: function(d){
            console.log(d);
            var file="http://127.0.0.1/tp_bypal/Public/file/"+d;
            Downer(file);
        },
        error: function(e){
            alert(e);
        }
    });
}